package com.wangtianxiang.sxp.back.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author wangtianxiang
 * @description 系统用户保存请求vo
 * @date 2021/4/18
 */
@ApiModel(description = "系统用户保存请求vo")
@Data
@Accessors(chain = true)
public class SysUserSaveVo {
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    @TableField(value = "username")
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty(value = "性别 0女 1男")
    @TableField(value = "gender")
    private int gender;

    @ApiModelProperty(value = "手机号")
    @TableField(value = "phone")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    @TableField(value = "email")
    private String email;
}
